Skip to content

fix(CopyIcon): Replace CopyIcon with RhUiCopyFillIcon#12449

Open
rebeccaalpert wants to merge 1 commit into
patternfly:mainfrom
rebeccaalpert:replace-copy-icon-with-rh-ui-copy-fill
Open

fix(CopyIcon): Replace CopyIcon with RhUiCopyFillIcon#12449
rebeccaalpert wants to merge 1 commit into
patternfly:mainfrom
rebeccaalpert:replace-copy-icon-with-rh-ui-copy-fill

Conversation

@rebeccaalpert

@rebeccaalpert rebeccaalpert commented Jun 12, 2026

Copy link
Copy Markdown
Member

What:
This is one piece of #12400. Breaking it up by icon so it is easier to review.

As a follow on, we may also want to update org: patternfly/patternfly-org#5036

Additional issues:

Summary by CodeRabbit

  • Style

    • Replaced the copy icon with a refreshed copy icon across the code editor, buttons, clipboard copy controls, code blocks, toggle groups, tooltips, and demo UIs for a consistent visual experience.
  • Documentation

    • Updated example and markdown documentation to use the new copy icon in all relevant samples.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@rebeccaalpert, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 5 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e89206db-d3e0-489b-9293-d6287a4389dc

📥 Commits

Reviewing files that changed from the base of the PR and between 12298d5 and 1b911b4.

⛔ Files ignored due to path filters (2)
  • packages/react-code-editor/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (13)
  • packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx
  • packages/react-core/src/components/Button/examples/Button.md
  • packages/react-core/src/components/Button/examples/ButtonCircle.tsx
  • packages/react-core/src/components/Button/examples/ButtonDisabled.tsx
  • packages/react-core/src/components/Button/examples/ButtonVariations.tsx
  • packages/react-core/src/components/ClipboardCopy/ClipboardCopyButton.tsx
  • packages/react-core/src/components/CodeBlock/examples/CodeBlock.md
  • packages/react-core/src/components/ToggleGroup/examples/ToggleGroup.md
  • packages/react-core/src/components/ToggleGroup/examples/ToggleGroupIcon.tsx
  • packages/react-core/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx
  • packages/react-core/src/components/Tooltip/examples/Tooltip.md
  • packages/react-core/src/components/Tooltip/examples/TooltipIcon.tsx
  • packages/react-integration/demo-app-ts/src/components/demos/ToggleGroupDemo/ToggleGroupDemo.tsx

Walkthrough

Replace the deprecated CopyIcon with PatternFly's RhUiCopyFillIcon across production components, component examples, documentation, and the demo application.

Changes

Icon replacement migration

Layer / File(s) Summary
Core production implementation
packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx, packages/react-core/src/components/ClipboardCopy/ClipboardCopyButton.tsx
CodeEditor and ClipboardCopyButton import and render RhUiCopyFillIcon instead of CopyIcon for their copy controls.
Component examples and documentation
packages/react-core/src/components/Button/examples/*, packages/react-core/src/components/CodeBlock/examples/CodeBlock.md, packages/react-core/src/components/ToggleGroup/examples/*, packages/react-core/src/components/Tooltip/examples/*
Button, CodeBlock, ToggleGroup, and Tooltip example components and markdown files update their icon imports and rendered examples to use RhUiCopyFillIcon.
Demo application
packages/react-integration/demo-app-ts/src/components/demos/ToggleGroupDemo/ToggleGroupDemo.tsx
ToggleGroupDemo adds the RhUiCopyFillIcon import and updates two ToggleGroupItem instances to render the new icon.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

Needs design review

Suggested reviewers

  • kmcfaul
  • thatblindgeye
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: replacing CopyIcon with RhUiCopyFillIcon across multiple files in the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@patternfly-build

patternfly-build commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Co-authored-by: Cursor <cursoragent@cursor.com>
@rebeccaalpert rebeccaalpert force-pushed the replace-copy-icon-with-rh-ui-copy-fill branch from 12298d5 to 1b911b4 Compare June 12, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants